#!/bin/bash
echo "验证修正后的工作区配置..."

echo "1. 检查工作区文件中的项目引用:"
grep -A1 -B1 "cbp2make_ai" CodeBlocks_wx30_64.workspace

echo ""
echo "2. 检查项目文件是否存在:"
if [ -f "tools/cbp2make_ai/cbp2make_aicoder_wx30_64.cbp" ]; then
    echo "✅ cbp2make_aicoder_wx30_64.cbp 存在"
else
    echo "❌ cbp2make_aicoder_wx30_64.cbp 不存在"
fi

echo ""
echo "3. 检查原始 cbp2make 项目:"
if [ -f "tools/cbp2make/cbp2make_wx30_64.cbp" ]; then
    echo "✅ cbp2make_wx30_64.cbp 存在"
else
    echo "❌ cbp2make_wx30_64.cbp 不存在"
fi

echo ""
echo "4. 工作区项目列表:"
echo "当前工作区包含以下项目:"
grep 'Project filename' CodeBlocks_wx30_64.workspace | sed 's/.*filename="//' | sed 's/"\s*\/>//'
